<template>
  <div>
      <div class="top">
          <a href="#" @click="goback"></a>
          <p>设置内容</p>
      </div>
      <div class="content">
          <input type="text" v-model="account">
         <button @click="go">完成</button>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            account:this.global.userinfo[0].account,
        }
    },
    methods:{
        goback(){
            this.$router.go("-1")
        },
        go(){
           this.global.userinfo[0].account = this.account
           this.$toast("更新成功") 
        }
    }
    
}
</script>

<style lang="less" scoped>
.top{
    background-color: #ff8f87;
    display: flex;
    align-items: center;
    height: 40px;
    a{
        width: 20px;
        height: 20px;
        background: url("../../assets/img/left.png")no-repeat;
        background-size: 100%;
    }
    p{
        margin: 0;
        margin-left: 33%;
        color: #fff;
    }
}
.content{
    padding-top: 20px;
    background-color: #f6f6f6;
    height: 700px;
    input{
        border: none;
        display: block;
        background-color: #fff;
        width: 95%;
        height: 30px;
        margin: 0 auto;
        font-size: 13px;
    }
    button{
        width: 95%;
        height: 35px;
        display: block;
        margin: 30px auto;
        border: none;
        color: #fff;
        background-color: #ff8f87;
    }
}
</style>